<?php
# Incluimos la configuracion
include ("includes/header.php");
include ("includes/connection.php");
include ("includes/login.php");
include ("includes/iniciaSessio.php");
include ("includes/contentHeader.php");
include ("./includes/menuMissatges.php");
?>

<!--<strong>De:</strong> <?=$row['de'] ?><br />-->

<body >
	<?php

	# Obtenemos el mensaje privado
$id = $_GET['id'];
$sql = "SELECT * FROM missatge WHERE de='" . $_SESSION['username'] . "' and idMissatge='" . $id . "'";
$res = mysql_query($sql, $conexion) or die(mysql_error());
$row = mysql_fetch_assoc($res);
	?>
	<!--contingut 1-->
	<section class="container">
		<!--fons gris-->
		<div class="hero-unit">
			<strong>Per: </strong><?php echo $row['per'] ?><br />
			<strong>Data: </strong><?php echo $row['data'] ?><br />
			<strong>Assumpte: </strong><?php echo $row['assumpte'] ?><br />
			<br />
			<strong>Mensaje: </strong>
			<br />
			<?=$row['text'] ?>
		</div>
		<!-- fi fons gris-->
	</section>
	<!-- fi contingut 1-->
	<!--contingut 2-->
	<section class="container">
		<div class="hero-unit"></div>
	</section>
	<!-- fi contingut 2-->
<hr>
	<?php
	include ("includes/footer.php");
	?>
	<?php ?>